package com.navinfo.opentsp.platform.computing.enums;


public enum ProtocolEnum {
    LOCATION_DATA(1, "0200协议,位置数据"),
    FAULT_DATA(2, "0f3a协议,故障数据"),
    REALTIME_DATA(3, "0f3b协议，密集数据"),
    STATISTICS_DATA(4, "0f3c协议,统计数据"),
    INCIDENT_ALARM_DATA(5, "0f3d协议,事件数据"),
    TIRE_TTEMPERATURE(6, "d002胎温胎压"),
    HANGZHOU_DISCHARGE(7, "d005杭州OBD"),
    PREDICTIVE_MAINTENANCE(8, "d006预见性维修"),
    AMTDATA(9, "d007协议AMT数据"),
    OBD_DATA(10, "obd协议数据"),
    ALERM_EVENT(11,"0f49后装告警事件"),
    ALERM_PICTURE(12,"后装附件上传json"),
    ROUTE_MATCH(13,"后装路线匹配"),
    SIX_EMISSIONS(15, "老版国六"),
    TAMPER_ALARM(16,"防拆报警"),
    VEHICLE_ELECTRO_CAR(17, "青汽电动车"),
    SIX_MESSAGE(18, "国六原始上报报文"),
    SIX_MESSAGE_ANSWER(19, "国六原始报文应答")
    ;


    ProtocolEnum(int protoType, String desc){
        this.protoType = protoType;
        this.desc = desc;
    }
    public int protoType;
    public String desc;

    public int getProtoType() {
        return protoType;
    }

    public void setProtoType(int protoType) {
        this.protoType = protoType;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static void main(String[] args) {
        System.out.println(ProtocolEnum.valueOf(LOCATION_DATA.name()).getProtoType());
    }

}
